#!/usr/bin/env/ pythonBasics
# -*-coding:utf-8 -*-

# Author:super
import pytest
from base.apiRequest import ApiRequest

obj = ApiRequest()
@pytest.fixture(scope="session")
def token():
	'''获取登录token'''
	req = obj.post(url='http://127.0.0.1:5000/auth',
	                    json={'username': 'wuya', 'password': 'asd888'})
	return req.json()['access_token']

@pytest.fixture()
def login():
	'''返回字符串'''
	return 'a56sd4a53d42a65s7d'